﻿#pragma once
#include "EditEntry.h"

class BooleanEditEntry : public EditEntry {
    Q_OBJECT
    struct BooleanEditEntryPrivate;
    QScopedPointer<BooleanEditEntryPrivate> p;
public:
    ~BooleanEditEntry();
    explicit BooleanEditEntry(QWidget *parent = nullptr);
    void setValue(bool checked);
    bool value() const;
signals:
    void valueChanged(bool value);
private:
    void onEditingFinished();
};
